<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{@$pageTitle@}</title>
{#include file="Public:head" /#}
</head>
<body id="mainBody">
<div id="all">
    {#rabbet id="tips" /#}    
	<div class="box2 w pr">
    	<div class="box2_wrap">
        	<div class="box2_top">
            	<h4 class="pl10 fb">文章信息管理 - 编辑文章</h4>
            </div>
        	<div class="box2_main">
            	<form action="" name="editForm" method="post">
                <input type="hidden" name="id" value="{@$data.id@}" />
                <table class="table3 w">
                	<tr>
                    	<td width="120" class="tr">文章名称：</td>
                    	<td><input type="text" name="article_name" class="input1 w300" value="{@$data.article_name@}" /> <span class="f-grey64">( ID:{@$data.id@} )</span></td>
                    </tr>
                	<tr>
                    	<td class="tr">文章分类：</td>
                    	<td>
                        	<select name="sort_id" class="select1 w160">
                            	{#volist name="sortList" id="sort"#}
                            		<option value="{@$sort.id@}" {#eq name="data.sort_id" value="$sort.id"#}selected="selected"{#/eq#}>{@$sort.sort_name@}</option>
                                {#/volist#}
                            </select>
                        </td>
                    </tr>
                	<tr>
                    	<td class="tr">文章状态：</td>
                    	<td><input type="radio" name="status" value="1" class="radio1" {#eq name="data.status" value="1"#}checked="checked"{#/eq#} />&nbsp;启用&nbsp;&nbsp;<input type="radio" name="status" value="0" class="radio1" {#eq name="data.status" value="0"#}checked="checked"{#/eq#} /> 禁用</td>
                    </tr>
                    {#notempty name="data.tags"#}
                	<tr>
                    	<td class="tr">聚合标签：</td>
                    	<td>
                        {#volist name="data.tags" id="tags"#}
                            <input type="checkbox" name="tags[]" value="{@$tags.id@}" class="checkbox1" {#eq name="tags.status" value="1"#}checked="checked"{#/eq#} />&nbsp;{@$tags.tag@}&nbsp;&nbsp;
                        {#/volist#}
                        </td>
                    </tr>
                    {#/notempty#}
                    {#in name="picJudge" value="1"#}
                	  <tr>
                    	<td width="120" class="tr">文章图片：</td>
                    	<td><input type="text" name="article_pic" class="input1 w300" value="{@$data.article_pic@}" />&nbsp;<input type="button" id="get_picture_upload" class="btn2" value="上传图片" /><script type="text/javascript" language="javascript">getImage("input[name=article_pic]", "#get_picture_upload");</script></td>
                    </tr>
                    {#/in#}
                    {#rabbet id="articleedit" /#}
                    <tr>
                    	<td class="tr vt">文章内容：</td>
                        <td><textarea name="content" class="w700 h300">{@$data.content@}</textarea><script type="text/javascript" language="javascript">getEditor("[name=content]");</script>
                    </tr>
                </table>
                <div class="manage1"><input type="button" id="enterResponse" onclick="btnSubmit('form[name=editForm]', 'admin.php?plu=article&a=articleedit&url={@$backUrl@}');" value="提交保存" class="btn2 ml130" /></div>
                </form>
            </div>
        </div>
        <div class="box3_lt pa"></div>
        <div class="box3_rt pa"></div>
    </div>
</div>
</body>
</html>
